
<!--<body>-->
<script src="<?php echo base_url('skin/js/promo.js'); ?>"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url('skin/css/choosepromo3-16-15fix.css'); ?>" />	
	<div id="phoneGallery" class="promoPage">
    
    <div class="galleryRight"></div>
    	
    	<div class="wizard">
            <a class="current done" href="<?php echo site_url('gadgetdetails'); ?>">
            <span class="wiz1"></span>
                 <p>Gadget details</p>
            </a>
            <a class="current" href="<?php  echo site_url('promo'); ?>">
             <span class="wiz2"></span>
                 <p>Choose your promo</p>
            </a>
            <a class="" href="<?php  echo site_url('prepaid'); ?>">
             <span class="wiz3"></span>
                 <p class="abs">Enter your <br>mobile number</p>
            </a>
            <a class="" href="<?php  echo site_url('userprofile'); ?>">
             <span class="wiz42"></span>
                 <p class="absd">Complete<br>your profile</p>
            </a>
        </div>
    
    	<div class="mobileHeader">
            <h5 class="hidden textBlue">Pick a gadget</h5>
            <h5 class="textBlue">Choose your promo</h5>
            <h5 class="hidden textBlue">Enter your mobile number</h5>
            <h5 class="hidden textBlue">Complete your profile</h5>
            <h5 class="hidden textBlue">Select your preferred Globe Store branch for handset pickup	</h5>
      </div>
    
    <div class="clear"></div>
    
    <div class="width960c">
    
    	<div class="deviceInfosIns marg40 floatLeft">
                		<div  class="deviceBox active">
                        	<p><b>Gadget:</b><p>
                            <p><?php if(isset($_COOKIE['tiangge_model'])) echo $_COOKIE['tiangge_model']; else echo $this->input->post("model");?> - <?php if(isset($_COOKIE['tiangge_price'])) echo $_COOKIE['tiangge_price']; else echo $this->input->post("price");?></p>
                        </div>
                 
                		<div class="promoBox">
                        	<p><b>Promo:</b><p>
                            <p id="promo">None</p>
                        </div>
                        
                        <div class="commitmentBox">
                       	    <p><b>Registration Period </br> and Cash Back:</b><p>
                            <p id="commitmentBox">None</p>
                        </div>
                        
                        <div class="prepaidBox">
                        	<p><b>Mobile Number:</b><p>
                            <p id="mobtel">None</p>
                        </div>
                        
                        <div class="profileBox">
                        	<p><b>Profile:</b><p>
                            <p class="pnone">None</p>
							<p style="display:none" id="pname"><span id="name"></span></p>
                           	<p style="display:none" id="pemail">Email Address:<br><span id="email"></span></p>
                           	<p style="display:none" id="pdob">Date of Birth:<br><span id="dob"></span></p>
                           	<p style="display:none" id="padd">Home Address:<br><span id="add"></span>
                        </div>
                        
            </div>
            
            
            <div class="floatLeft boxRight">
            
            	<div id="promoType"><!---FIRST--->

                    <p class="header30" style="margin-bottom:-10px">Choose promo type</p>
                    
                    <p class="text14">Now it's time to choose the promo that you can use with your gadget!</p>
                
                
                    <div id="promoType-inner" class="choosepromodynamicfix">
					
                    </div>
					 <p class="text14">*Don't worry, you can still change your promo within the GoGADGETS registration period.</p>
            	</div><!---FIRST--->
            
            
            	<div id="validity" class="marg40" style="display:none;"><!---SECOND--->
                	<p class="header30" style="margin-bottom:-10px">Choose validity period</p>
                    
                    <p class="text14">You can choose a promo validity of 7 days, 15 days or 30 days - it's all up to you. </p>
              
               
                 <div id="validity-inner" class="SVPdynamicfix">

                 </div>
                </div><!---SECOND--->
                  
                <div id="choosePromo" class="marg40" style="display:none;"><!---THIRD--->
                	<p class="header30" style="margin-bottom:-10px">Choose promo details</p>
                    
                    <p class="text14">Choose the promo that fits your budget. </p>
               
                
                <div id="choosePromo-inner" class="cpddynamicfix">                
                        
                </div>
				<p class="alignLeft">* to Globe/TM</p> 
				</div><!---THIRD--->
                
                <div id="commitment" class="marg40" style="display:none;"><!---FOURTH--->
                	<p class="header30" style="margin-bottom:-10px">Choose registration period and cash back
</p>
                    
                    <p class="text14">Get your cash back through GCash every time you subscribe to your GoGADGETS promo during the registration period.
</p>
                
                
                 <div id="commitment-inner" class="crpcbynamicfix">
				 
                  </div>
				</div><!---FOURTH--->
              
              	<div id="promoConfirm" style="display:none;">
                	<span class="triangle"></span>
                	<div class="blueShade">
                    	<h1>Summary</h1>
                    	
                        
                        <div class="floatLeft"> 
                        	<p class="text19"><b>Promo Details</b></p>
							<ul class="marg0">
                                <li><span class="summary-promoname"><?php if(isset($_COOKIE['tiangge_choosePromo'])) echo $_COOKIE['tiangge_choosePromo'];?></span>
                                <p>With <span id="summary-desc">
									<?php 
										$user_agent = $_SERVER['HTTP_USER_AGENT']; 
										if (strpos( $user_agent, 'Safari') !== false) {
											if(isset($_COOKIE['tiangge_promoDesc'])) {
												$promoDesc = $_COOKIE['tiangge_promoDesc'];
												echo str_replace("john",",",$promoDesc);
											}
										} else {
											if(isset($_COOKIE['tiangge_promoDesc'])) {
												echo $_COOKIE['tiangge_promoDesc'];
											}
										}	
									?>
								</span></p>
                                <p>Valid for <span id="summary-validity"><?php if(isset($_COOKIE['tiangge_validity'])) echo $_COOKIE['tiangge_validity'];?></span></p>
								<?php if(isset($_COOKIE['tiangge_validity'])): ?>
									<?php if ($_COOKIE['tiangge_validity'] == "7 days"): ?>
										 <p id="summary-regval">Must subscribe weekly throughout the registration period</p>
									<?php elseif ($_COOKIE['tiangge_validity'] == "15 days"): ?>
										 <p id="summary-regval">Must subscribe twice a month throughout the registration period</p>
									<?php else: ?>
										 <p id="summary-regval">Must subscribe monthly throughout the registration period</p>
									<?php endif;?>
								<?php else: ?>
										 <p id="summary-regval"></p>
								<?php endif;?>
                                </li>
                            </ul>
                              
                              
                              
                            <p class="text19"><b>Registration Period and Cash Back</b></p>
                               <ul  class="marg0">
                               <li><span id="summary-months"><?php if(isset($_COOKIE['tiangge_months'])) echo $_COOKIE['tiangge_months'];?></span></li>
                               <li> Total cash back of P<span class="summary-totalrebate"><?php if(isset($_COOKIE['tiangge_totalrebate'])) echo number_format(str_replace("P", "", $_COOKIE['tiangge_totalrebate']),2); ?></span><p>(<span id="summary-rebateamt"><?php if(isset($_COOKIE['tiangge_rebateamt']))echo "P" . number_format(str_replace("P", "", $_COOKIE['tiangge_rebateamt']),2);?></span> per registration to <span class="summary-promoname"><?php if(isset($_COOKIE['tiangge_choosePromo'])) echo $_COOKIE['tiangge_choosePromo'];?></span>)</p></li>
                              </ul>
                        </div>
                        
                        <div class="floatRight">
                        	<div class="lightBlueShade">
                        		<p class="text14">Upon pick up of your gadget, the total cash out required is:</p>
                            <table>
                            <tbody>
                           <tr class="text14"> 
                           <td class="tdmod1yv"><?php if(isset($_COOKIE['tiangge_model'])) echo $_COOKIE['tiangge_model']; else echo $this->input->post("model"); ?></td>	 
                           <td> </td>   
                           <td class="alignRight tdmod1yv"><span class="summary-gadgetprice"><?php if(isset($_COOKIE['tiangge_price'])) echo $_COOKIE['tiangge_price']; else echo $this->input->post("price");?></span></td>
                           </tr>
                           <tr class="text14"> 
                           <td class="tdmod2yv"><span class="summary-promoname"><?php if(isset($_COOKIE['tiangge_choosePromo'])) echo $_COOKIE['tiangge_choosePromo'];?></span></td>
                           <td>	 </td>	     
                           <td class="alignRight tdmod2yv"><span class="summary-promoprice"><?php if(isset($_COOKIE['tiangge_promoprice'])) echo $_COOKIE['tiangge_promoprice'];?></span></td>
                           </tr>
                          
                             <tr class="text18  fontBold"> 
                           <td>Total Cash Out</td>
                           <td></td>
                           <td class="alignRight"><span class="summary-totalcash"><?php if(isset($_COOKIE['tiangge_totalcash'])) echo $_COOKIE['tiangge_totalcash'];?></span></td>	
                           </tr>
                           </tbody>  
                            </table>
                           
                        	</div>
                            
                            <div class="lightBlueShade marg20Top">
                        		<p id="summary-text1" class="text14">With your cash back, the discounted gadget price is:</p>
                            <table>
                            <tbody>
                           <tr class="text14"> 
                           <td class="tdmod1yv"><?php if(isset($_COOKIE['tiangge_model'])) echo $_COOKIE['tiangge_model']; else echo $this->input->post("model"); ?></td>	 
                           <td> </td>   
                           <td class="alignRight tdmod1yv"><?php if(isset($_COOKIE['tiangge_price'])) echo $_COOKIE['tiangge_price']; else echo $this->input->post("price"); ?></td>
                           </tr>
                           <tr class="text14"> 
                           <td class="tdmod2yv">Total cash back</td>
                           <td>	 </td>	     
                           <td class="alignRight tdmod2yv"><span class="summary-totalrebate"><?php if(isset($_COOKIE['tiangge_totalrebate'])) echo number_format(str_replace("P", "", $_COOKIE['tiangge_totalrebate']),2); ?></span></td>
                           </tr>
                           
                             <tr class="text18 fontBold"> 
                           <td id="summary-text2">Discounted <br> Gadget Price</td>
                           <td></td>
                           <td class="alignRight tdmodmtop"><span class="summary-discounted"><?php if(isset($_COOKIE['tiangge_discounted'])) echo $_COOKIE['tiangge_discounted']; ?></span><span id="summary-free" style="display:none">FREE</span></td>	
                           </tr>
                           </tbody>  
                            </table>
                           
                        	</div>
                            
                            
                        </div>
                    
                        <div class="clear"></div>                                                       
                        <div class="alignCenter">
                    <?php if(isset($_COOKIE['tiangge_mode'])): ?>
					 <?php if($_COOKIE['tiangge_mode']=="edit"): ?>
				      <a href="<?php  echo site_url('summary'); ?>" id="btn_ProceedOrder" class="buttonBlue marg20Top" style="font-size: 18px; padding: 5px 30px 0;"></span>Proceed with this order</a>
					 <?php else: ?>
					  <a href="<?php  echo site_url('prepaid'); ?>" id="btn_ProceedOrder" class="buttonBlue marg20Top" style="font-size: 18px; padding: 5px 30px 0;"></span>Proceed with this order</a>
					 <?php endif;?>
					<?php else: ?>
					 <a href="<?php  echo site_url('prepaid'); ?>" id="btn_ProceedOrder" class="buttonBlue marg20Top" style="font-size: 18px; padding: 5px 30px 0;"></span>Proceed with this order</a>
					<?php endif;?>
                        </div>
                	</div>
                </div>
              
              
               
            </div><!---BOX RIGHT END---> 
            
            <div class="clear"></div>
            
            </div>            
       </div>